var express = require('express');
var router = express.Router();
var menucontroller = require('../controllers/menucontroller')
  //所有商品信息
router.get('/menu', function(req, res, next) {
    menucontroller.getAllTrade(req,res)
  })
  // 单个商品信息
router.get('/menuID', function(req, res, next) {
  menucontroller.getTradeId(req,res)
  });
  // 搜索框
router.get('/find', function(req, res, next) {
  menucontroller.getFind(req,res)
});
  //获取各个分类的商品信息
router.get('/getClassTrade',function(req,res,next){
  menucontroller.getClassTrade(req,res)
})

module.exports = router